package com.easipass.framework.eirframeworkstream;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "core")
public interface CoreFeignService {

    @RequestMapping(value = "/process/{service}", method = RequestMethod.POST)
    void process(@PathVariable("service") String service,
                 @RequestParam(value = "name") String name,
                 @RequestParam(value = "content") String content);

}
